<?php
/**
 * Jobs Model for Jobs World Component
 * 
 * @package    Joomla.Tutorials
 * @subpackage Components
 * @link http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_2
 * @license    GNU/GPL
 */
 
// No direct access
 
defined( '_JEXEC' ) or die( 'Restricted access' );
 
jimport( 'joomla.application.component.model' );
 
/**
 * Jobs Model
 *
 * @package    Joomla.Tutorials
 * @subpackage Components
 */
class JobsModelJobs extends JModel
{
	/**
	 * Category ata array
	 *
	 * @var array
	 */
	var $_data = null;

	/**
	 * Category total
	 *
	 * @var integer
	 */
	var $_total = null;

	/**
	 * Pagination object
	 *
	 * @var object
	 */
	var $_pagination = null;

	/**
	 * Constructor
	 *
	 * @since 1.5
	 */
	function __construct()
	{
		parent::__construct();

		global $mainframe, $option;
	}


	function getListImageJobs($id)
    {
		$db =& JFactory::getDBO();
	    $query = 'SELECT * FROM #__jobs_images where jobs_id = '.$id;
	    $db->setQuery( $query );
	    $rows = $db->loadObjectList();
        return $rows;
    }
	function getActorDetail($id)
    {
		$db =& JFactory::getDBO();
	    $query = 'SELECT * FROM #__jobs where id = '.$id;
	    $db->setQuery( $query );
	    $row = $db->loadObject();
        return $row;
    }
}